﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Urb.Weather.Wunderground
{
    public class WundergroundWeatherUri
    {
        protected string Location { get; set; }

        public WundergroundWeatherUri(string location)
        {
            if (string.IsNullOrEmpty(location))
                throw new ArgumentNullException("location");

            Location = location;
        }

        public override string ToString()
        {
            return string.Format("http://api.wunderground.com/auto/wui/geo/WXCurrentObXML/index.xml?query={0}", Location);
        }
    }
}
